package org.example.exception;

/**
 * 定义基本异常
 * @author Kong
 * @date 2021-9-13 13:56
 */
public class BaseException extends RuntimeException {
    private Integer code;
    private String message;

    public BaseException() {
    }

    public BaseException(String message) {
        super(message);
        this.message = message;
    }

    public BaseException(Integer code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }
}
